/* ******************************************************************
 * This file is part of the escal project and distributed under the 
 * terms of the GNU General Public License Version 3
 * CopyRight (C) 2008 Epocher (xijiaosdq@gmail.com)
 * See COPYING file for licensing information.
 ********************************************************************/

#include "escal_settings.h"

EscalSettings::EscalSettings(const QString & organization, const QString 
		& application ,QObject * parent)
	:QObject(parent), settings(organization,application ,this)
{
	
};

EscalSettings::EscalSettings(const QString & fileName, QSettings::Format format,
		QObject * parent)
	:QObject(parent), settings(fileName, format, this)
{

};

QVariant EscalSettings::value(const QString & key, const QVariant 
		& defaultValue) const
{
	return settings.value(key, defaultValue);
};

void EscalSettings::setValue(const QString & key, const QVariant & value ){
	settings.setValue(key, value);
	if(key=="DownloadFolderList"){
		emit foldersChanged();
	}
};

